<style>
    .container {
        padding-right: 15px;
        padding-left: 15px;
        margin-right: auto;
        margin-left: auto;
    }
    @media (min-width: 768px) {
        .container {
            width: 750px;
        }
    }
    @media (min-width: 992px) {
        .container {
            width: 970px;
        }
    }
    @media (min-width: 1200px) {
        .container {
            width: 1170px;
        }
    }
</style>
<div class="container">
    <h1>操作系统</h1>
    <nav class="navbar navbar-inverse" id="systemVue">
        <div id="navbar-menu" class="collapse navbar-collapse">
            <ul class="nav navbar-nav">
                <li class="active"><a href="#" @click="showWindows">Windows</a></li>
                <li><a href="#" @click="showLinux">Linux</a></li>
            </ul>
        </div>
    </nav>
</div>
<div class="col-md-1"></div>
<div class="col-md-8 " id="windows_vue">
    <div class="panel panel-default">
        <div class="panel-heading">windows下oracle常用命令</div>
        <div class="panel-body">
            <p>
                windows系统下，oracle数据库的启停、连接、查询等操作
            </p>
            <table class="table table-bordered">
                <thead>
                <tr>
                    <th>命令</th>
                    <th>案例</th>
                    <th>解释</th>
                </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>sqlplus</td>
                        <td>sqlplus "/as sysdba" </td>
                        <td>无需数据库进入可用状态，就可用用该命令登录，运行startup来启动。</td>
                    </tr>
                    <tr>
                        <td>sqlplus</td>
                        <td>sqlplus username/pwd@host/service_name</td>
                        <td>以用户名/密码、IP：Port、服务名 为参数登录。</td>
                    </tr>
                    <tr>
                        <td>sqlplus</td>
                        <td>sqlplus /nolog</td>
                        <td>使用sqlplus命令，而不连接数据库，然后用conn命令登录。</td>
                    </tr>
                    <tr>
                        <td>conn</td>
                        <td> conn tiger/scott  conn tiger/scott@172.16.0.1/orcl</td>
                        <td>本地连接和远程连接</td>
                    </tr>
                    <tr>
                        <td>DISCONNECT</td>
                        <td>DISCONNECT</td>
                        <td>断开连接</td>
                    </tr>
                    <tr>
                        <td>DESCRIBE</td>
                        <td>DESC dba_users;</td>
                        <td>查看对象的结构，这里的对象可以是表、视图、存储过程、函数和包等</td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div class="panel-footer">作者：NOCODER</div>
    </div>
</div>
<div class="col-md-8" id="linux_vue" style="display:none;">
    <div class="panel panel-default">
        <div class="panel-heading">Linux下oracle常用命令</div>
        <div class="panel-body">
            <p>
                linux系统下，oracle数据库的启停、连接、查询等操作
            </p>
            <table class="table table-bordered">
                <thead>
                <tr>
                    <th>命令</th>
                    <th>案例</th>
                    <th>解释</th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td>sqlplus</td>
                    <td>sqlplush /nolog</td>
                    <td>仅仅是个测试命令注释</td>
                </tr>
                </tbody>
            </table>
        </div>
        <div class="panel-footer">作者：NOCODER</div>
    </div>
</div>
<div class="col-md-3">
    <h2>快速链接</h2>
    <ul class="nav nav-tabs nav-stacked">
        <li><a href='#'>mysql常用操作命令</a></li>
        <li><a href='#'>db2常用操作命令</a></li>
        <li><a href='#'>sqlServer常用操作命令</a></li>
    </ul>
</div>
<script>
    var systemVue = new Vue({
        el:"#systemVue",
        methods:{
            showLinux:function(a){
                $("#systemVue").find(".active").removeClass("active");
                $(a.srcElement).parent().addClass("class","active");
                $("#linux_vue").show();
                $("#windows_vue").hide();
            },
            showWindows:function(a){
                $("#systemVue").find(".active").removeClass("active");
                $(a.srcElement).parent().addClass("class","active");
                $("#linux_vue").hide();
                $("#windows_vue").show();
            }
        }
    });

</script>